#ex5

number = 2
total = 0

while number <= 100:
    if number % 2 == 0:
        total += number
    elif number % 2 == 1:
        total -= number
    number += 1

print("the sum is %s." % total)